import http from '../http'

export default {
    /**
     * 保存游戏信息
     * @param params 
     * @returns 
     */
    saveGameInfo: (params:object) => {
        return http.post('/gameInfo/saveGameInfo', params)
    },
    /**
     * 查询游戏信息
     * @param params 
     * @returns 
     */
    searchGameInfo: (params:string) => {
        return http.get('/gameInfo/searchGameInfo?gameName=' + params)
    },
    /**
     * 上传图片
     * @param params 
     * @returns 
     */
    uploadImage: (params:object) => {
        return http.post('/gameInfo/uploadImage', params)
    }
}